{template 'common/header'}
<ul class="nav nav-tabs">
	<li class="active"><a href="{php echo $this->createWebUrl('record');}">全部充值记录</a></li>
</ul>
	<div class="panel panel-default">
		<div class="panel-heading">充值记录</div>
		<div class="panel-body">
			<div class="table-responsive panel-body">
				<table class="table table-hover" style="min-width: 300px;">
					<thead class="navbar-inner">
						<tr>
							<th class="col-sm-2">订单号</th>
							<th class="col-sm-1">用户ID</th>
							<th class="col-sm-2">昵称</th>
							<th class="col-sm-1">支付方式</th>
							<th class="col-sm-2">微信订单号</th>
							<th class="col-sm-1">总价</th>
							<th class="col-sm-1">状态</th>
							<th class="col-sm-2">下单时间</th>
							<th class="col-sm-1 text-right">操作</th>
						</tr>
					</thead>
					<tbody>
						{loop $goodses $goodsid $goods}
						<tr>
							<td>{$goods['ordersn']}</td>
							<td>{$goods['uid']}</td>
							<td>{$goods['nickname']}</td>
							<td>{if ($goods['paytype']<3)}{if ($goods['paytype']==1)}<span class="label label-danger">余额支付{else}{if ($goods['paytype']==2)}<span class="label label-danger">支付宝支付{else}<span class="label label-default">未支付{/if}{/if}{else}{if ($goods['paytype']==3)}<span class="label label-danger">微信支付{else}{if ($goods['paytype']==5)}<span class="label label-danger">后台充值{else}<span class="label label-danger">保证金返还{/if}{/if}{/if}</span</td>
							<td>{$goods['transid']}</td>
							<td>{$goods['price']} 元</td>
							<td>{if ($goods['status']==1)}<span class="label label-info">已支付</span>{else}<span class="label label-default">未支付</span>{/if}</td>
							<td>{php echo date('Y-m-d H:i:s', $goods['createtime'])}</td>
							<td class="text-right">
								<a href="{php echo $this->createWebUrl('delrecharge',array('id'=>$goods['id']));}" onclick="return confirm('此操作不可恢复，确认删除？');return false;" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="删除"><i class="fa fa-times"></i>
							</a>
							</td>
						</tr>
						{/loop}
						{if empty($goodses)}
						<tr>
							<td colspan="8">
								没有交易记录
							</td>
						</tr>
						{/if}
					</tbody>
				</table>
				{$pager}
			</div>
		</div>
	</div>
</div>

{template 'common/footer'}